<?php
/**
 * 评价任务表验证器
 */

namespace app\common\validate;

class UserAppraiseOrderValidate extends Validate
{
    protected $rule = [
        'task_no|任务编号' => 'require',
        'order_id|主任务id' => 'require',
        'uid|粉丝id' => 'require',
        'image|二维码' => 'require',
        'url|任务链接' => 'require',
        'order_no|订单编号' => 'require',
        'comments|评语' => 'require'
    ];

    protected $message = [
        'task_no.require' => '任务编号不能为空',
        'order_id.require' => '主任务id不能为空',
        'uid.require' => '粉丝id不能为空',
        'image.require' => '二维码不能为空',
        'url.require' => '任务链接不能为空',
        'order_no.require' => '订单编号不能为空',
        'comments.require' => '评语不能为空'
    ];

    protected $scene = [
        'add'  => ['task_no','order_id','uid','image','url','order_no','comments',],
        'edit' => ['task_no','order_id','uid','image','url','order_no','comments',]
    ];



}